package com.bocai.grainshop.authserver.feign;

import com.bocai.common.utils.R;
import com.bocai.grainshop.authserver.vo.SocialUser;
import com.bocai.grainshop.authserver.vo.UserLoginVo;
import com.bocai.grainshop.authserver.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient("grainshop-member")
public interface MemberfeignService {

    @PostMapping("/member/member/regist")
    R registMember(@RequestBody UserRegisterVo registerVo);

    @PostMapping("/member/member/login")
    R loginMember(@RequestBody UserLoginVo loginVo);

    @PostMapping("/member/member/gitee")
    R GiteeLogin(@RequestBody SocialUser socialUser);
}
